package cx3k.dataaccess.search;

import java.lang.reflect.Field;



public class OrSearchValue extends SearchValue {
	
	private static final String JOIN_OR = " or ";
	
	public OrSearchValue(Class<?> type, Field field, Object value, SearchNode parent){
		super(type, field, value, EqualityType.LIKE, parent);
	}
	
	public OrSearchValue(Class<?> type, Field field, Object value, EqualityType operator, SearchNode parent){
		super(type, field, value, operator, parent);
	}
	
	public OrSearchValue(String type, String field, String value, EqualityType operator, SearchNode parent){
		super(type, field, value, operator, parent);
	}

	@Override
	public String getDefaultQueryStr(){
		return JOIN_OR + super.getDefaultQueryStr();
	}

}
